Teacher Version

Hero Image
Hero Image

Line Track for Distance

Program your robot to track the line conditionally!

Place the robot on the line tracking table.

Modify the behavior of your program so that it stops line tracking after four motor rotations of the Left Motor.

Physical Robot: LineTrackingForRotations.rbg

Virtual Robot: LineTrackingForRotationsVR.rbg

Instead of a repeatForever Loop block, use a repeatUntil Loop block. Set it to the value of the motor encoder. 

© 2016 Robomatter, Inc.

Portions of this product are manufactured under license from Carnegie Mellon University.